import type { DialogInstance, DialogProps } from 'element-plus'

export interface ZDialogProps
  extends /* @vue-ignore */ Omit<ExtractPropTypes<DialogProps>, 'title'> {
  title?: string
  fullscreen?: boolean
  width?: string | number
  scroll?: boolean // 是否开启滚动条。如果是的话，按照 maxHeight 设置最大高度
  maxHeight?: string | number
}

export interface ZDialogInstance extends Omit<DialogInstance, '$props'> {
  $props: ZDialogProps
}
